#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#define ChessWidth 800
#define ChesHeight 800
#define LineCount 10
#define MaxCaseCount 8


#include <QPainter>
#include <QPen>
#include <QMouseEvent>
#include <QDebug>
#define cout qDebug()<<"["<<__FILE__<<":"<<__LINE__<<"]"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
protected:
    void paintEvent(QPaintEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
private slots:

private:
    Ui::MainWindow *ui;
    int caseWidthX;
    int caseWidthY;
    int indexX;
    int indexY;
    bool drawChessman;
};

#endif // MAINWINDOW_H
